import Modeler from 'bpmn-js/lib/Modeler';
import inherits from 'inherits';
import CustomModule, { customModuleForView } from './custom';

export default function CustomModeler(
  this: any,
  options: any,
) {
  Modeler.call(this, options);
  this._customElements = [];
}
inherits(CustomModeler, Modeler);
CustomModeler.prototype._modules = [].concat(CustomModeler.prototype._modules, [CustomModule]);

export function CustomModelerForView(
  this: any,
  options: any,
) {
  Modeler.call(this, options);
  this._customElements = [];
}
inherits(CustomModelerForView, Modeler);
CustomModelerForView.prototype._modules = [].concat(CustomModelerForView.prototype._modules, [customModuleForView]);
